xen/arm: Move macro VABORT_GEN_BY_GUEST to common header
authorWei Chen <Wei.Chen@arm.com>
Wed, 5 Apr 2017 09:09:13 +0000 (17:09 +0800)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 5 Apr 2017 19:12:36 +0000 (12:12 -0700)
commitac825c46b5c1a0dc5b611bdd5fbcb35349e955c4
treea9570a7d2871f479c77a77eba99c5bcd1dffa804
parent2f08a16b043822ec9011397acf8d2a63e6802c6c
xen/arm: Move macro VABORT_GEN_BY_GUEST to common header

We want to move part of SErrors checking code from hyp_error assembly code
to a function. This new function will use this macro to distinguish the
guest SErrors from hypervisor SErrors. So we have to move this macro to
common header.

The VABORT_GEN_BY_GUEST macro uses the symbols abort_guest_exit_start
and abort_guest_exit_end. After we move this macro to a common header,
we need to make sure that the two symbols are visible to other source
files. Currently, they are declared .global in arm32/entry.S, but not
arm64/entry.S. Fix that.

Signed-off-by: Wei Chen <Wei.Chen@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/arm64/entry.S
xen/include/asm-arm/arm32/processor.h
xen/include/asm-arm/processor.h